<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body">
            <div class="layui-tab layui-tab-brief">
                <ul class="layui-tab-title">
                    <li {empty name="sms.send_mode"} class="layui-this" {/empty} onclick="tabShow(0)">阿里短信</li>
                    <li {notempty name="sms.send_mode"} {eq name="sms.send_mode" value="1"} class="layui-this" {/eq} {/notempty} onclick="tabShow(1)">互亿短信</li>
                    <li {notempty name="sms.send_mode"} {eq name="sms.send_mode" value="2"} class="layui-this" {/eq} {/notempty} onclick="tabShow(2)">聚合短信</li>
                </ul>
            </div>
            <form class="layui-form" target="hide_form" method="post" action="">
                <div class="layui-form layui-tab-content">
                    <div class="layui-tab-item {empty name='sms.send_mode'} layui-show {/empty}">
                        <div class="layui-form-item">
                            <label class="layui-form-label">AppKey</label>
                            <div class="layui-input-inline">
                                <input type="text" name="ali[app_key]" value="{$sms.ali.app_key|default=''}" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">SecretKey</label>
                            <div class="layui-input-inline">
                                <input type="text" name="ali[secret_key]" value="{$sms.ali.secret_key|default=''}" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">SignName</label>
                            <div class="layui-input-inline">
                                <input type="text" name="ali[sign_name]" value="{$sms.ali.sign_name|default=''}" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">Template</label>
                            <div class="layui-input-inline">
                                <input type="text" name="ali[template]" value="{$sms.ali.template|default=''}" class="layui-input">
                            </div>
                        </div>
                    </div>
                    <div class="layui-tab-item {notempty name='sms.send_mode'} {eq name='sms.send_mode' value='1'} layui-show {/eq} {/notempty}">
                        <div class="layui-form-item">
                            <label class="layui-form-label">AppKey</label>
                            <div class="layui-input-inline">
                                <input type="text" name="hy[app_key]" value="{$sms.hy.app_key|default=''}" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">SecretKey</label>
                            <div class="layui-input-inline">
                                <input type="text" name="hy[secret_key]" value="{$sms.hy.secret_key|default=''}" class="layui-input">
                            </div>
                        </div>
                    </div>
                    <div class="layui-tab-item {notempty name='sms.send_mode'} {eq name='sms.send_mode' value='2'} layui-show {/eq} {/notempty}">
                        <div class="layui-form-item">
                            <label class="layui-form-label">AppKey</label>
                            <div class="layui-input-inline">
                                <input type="text" name="jh[app_key]" value="{$sms.jh.app_key|default=''}" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">短信模板ID</label>
                            <div class="layui-input-inline">
                                <input type="text" name="jh[tpl_id]" value="{$sms.jh.tpl_id|default=''}" class="layui-input">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-tab-item layui-show">
                    <div class="layui-form-item">
                        <label class="layui-form-label">发送方式：</label>
                        <div class="layui-input-block">
                            <input type="radio" name="send_mode" value="0" title="阿里短信" {empty name="sms.send_mode"} checked {/empty} >
                            <input type="radio" name="send_mode" value="1" title="互亿短信" {notempty name="sms.send_mode"} {eq name="sms.send_mode" value="1"} checked {/eq} {/notempty} >
                            <input type="radio" name="send_mode" value="2" title="聚合短信" {notempty name="sms.send_mode"} {eq name="sms.send_mode" value="2"} checked {/eq} {/notempty} >
                        </div>
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <div class="layui-input-block">
                        <input type="submit" class="layui-btn layui-btn-normal" value="立即保存" />
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script src="__STATIC__/admin/js/jquery-3.6.0.min.js"></script>
<script type="text/javascript">
    function tabShow(tab) {
        $('.layui-tab-content').find('.layui-tab-item').eq(tab).addClass('layui-show').siblings().removeClass('layui-show')
    }
</script>